package com.activiti.ActivitiUtils.builder.payload.task;

import java.util.Map;

/**
 * create by chongyahhh
 * 2020/4/4
 */
public class TaskCompletePayload {
    private String id;
    private String assigneeId;
    private Map<String,Object> taskLocalVariables;
    private Map<String,Object> processVariables;

    public TaskCompletePayload() {
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getAssigneeId() {
        return assigneeId;
    }

    public void setAssigneeId(String assigneeId) {
        this.assigneeId = assigneeId;
    }

    public Map<String, Object> getTaskLocalVariables() {
        return taskLocalVariables;
    }

    public void setTaskLocalVariables(Map<String, Object> taskLocalVariables) {
        this.taskLocalVariables = taskLocalVariables;
    }

    public Map<String, Object> getProcessVariables() {
        return processVariables;
    }

    public void setProcessVariables(Map<String, Object> processVariables) {
        this.processVariables = processVariables;
    }

    public TaskCompletePayload withId(String id) {
        this.id = id;
        return this;
    }

    public TaskCompletePayload withAssigneeId(String assigneeId) {
        this.assigneeId = assigneeId;
        return this;
    }

    public TaskCompletePayload withTaskLocalVariables(Map<String, Object> taskLocalVariables) {
        this.taskLocalVariables = taskLocalVariables;
        return this;
    }

    public TaskCompletePayload withProcessVariables(Map<String, Object> processVariables) {
        this.processVariables = processVariables;
        return this;
    }
}
